<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%--
  Created by IntelliJ IDEA.
  User: wxc
  Date: 2021/10/23
  Time: 9:58
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<form method="post" action="/student/update">
    <table>
        <tr>
            <td><label for="sno">学号</label></td>
            <td><input id="sno" type="text" readonly="readonly" name="sno" value=${stu.sno}></td>
        </tr>
        <tr>
            <td><label for="sname">姓名</label></td>
            <td><input id="sname" type="text" name="sname" value=${stu.sname}></td>
        </tr>
        <tr>
            <td><label for="sex"></label>性别</td>
            <td><input id="sex" type="text" name="sex" value=${stu.sex}></td>
        </tr>
        <tr>
            <td><label for="phone">电话</label></td>
            <td><input id="phone" type="text" name="phone" value=${stu.phone}></td>
        </tr>
        <tr>
            <td><label for="address"></label>地址</td>
            <td><input id="address" type="text" name="address" value=${stu.address}></td>
        </tr>
        <tr>
            <td><label for="birthday">生日</label></td>
            <td><input id="birthday" type="text" name="birthday" value="<fmt:formatDate value="${stu.birthday}" pattern="yyyy-MM-dd" type="date"/>"></td>
        </tr>
        <tr>
            <td><label for="email">email</label></td>
            <td><input id="email" type="text" name="email" value=${stu.email}></td>
        </tr>
    </table>
    <button>修改</button>
</form>
</body>
</html>
